<?php

return [

    'admin' => [
        [
            'name' => '控制台',
            'mark' => 'home',
            'icon' => 'layui-icon layui-icon-console',
            'menu' => [
                [
                    'name' => '后台首页',
                    'uri' => 'admin/home/main',
                    'icon' => 'layui-icon layui-icon-home',
                ],
                [
                    'name' => '系统设置',
                    'uri' => 'admin/system/index',
                    'icon' => 'layui-icon layui-icon-set-sm',
                ],
                [
                    'name' => '模块管理',
                    'uri' => 'admin/module/index',
                    'icon' => 'layui-icon layui-icon-android',
                ],
                [
                    'name' => 'IP黑名单',
                    'uri' => 'admin/black/index',
                    'icon' => 'layui-icon layui-icon-fonts-del',
                ],
                [
                    'name' => '操作日志',
                    'uri' => 'admin/system/oplog',
                    'icon' => 'layui-icon layui-icon-log',
                ],
                [
                    'name' => '错误日志',
                    'uri' => 'admin/system/debug',
                    'icon' => 'layui-icon layui-icon-log',
                ],
            ],
        ],
        [
            'name' => '后台权限',
            'mark' => 'rbac',
            'icon' => 'layui-icon layui-icon-auz',
            'menu' => [
                [
                    'name' => '菜单管理',
                    'uri' => 'admin/menu/index',
                    'icon' => 'layui-icon layui-icon-spread-left',
                ],
                [
                    'name' => '管理员',
                    'uri' => 'admin/rbac/index',
                    'icon' => 'layui-icon layui-icon-user',
                ],
                [
                    'name' => '角色管理',
                    'uri' => 'admin/rbac/role',
                    'icon' => 'layui-icon layui-icon-friends',
                ],
                [
                    'name' => '权限规则',
                    'uri' => 'admin/rbac/rule',
                    'icon' => 'layui-icon layui-icon-auz',
                ],
            ],
        ],
        [
            'name' => '内容管理',
            'mark' => 'content',
            'icon' => 'layui-icon layui-icon-table',
            'menu' => [
                [
                    'name' => '文章管理',
                    'uri' => 'admin/article/index',
                    'icon' => 'layui-icon layui-icon-username',
                ],
                [
                    'name' => '导航管理',
                    'uri' => 'admin/navbar/index',
                    'icon' => 'layui-icon layui-icon-link',
                ],
                [
                    'name' => '单页管理',
                    'uri' => 'admin/pages/index',
                    'icon' => 'layui-icon layui-icon-template-1',
                ],
                [
                    'name' => '广告管理',
                    'uri' => 'admin/blocks/index',
                    'icon' => 'layui-icon layui-icon-component',
                ],
                [
                    'name' => '碎片管理',
                    'uri' => 'admin/pieces/index',
                    'icon' => 'layui-icon layui-icon-app',
                ],
            ],
        ],
        [
            'name' => '用户管理',
            'mark' => 'user',
            'icon' => 'layui-icon layui-icon-username',
            'menu' => [
                [
                    'name' => '用户列表',
                    'uri' => 'admin/user/index',
                    'icon' => 'layui-icon layui-icon-username',
                ],
                [
                    'name' => '用户分组',
                    'uri' => 'admin/user/group',
                    'icon' => 'layui-icon layui-icon-user',
                ],
            ],
        ],
    ],
    'user' => [
        [
            'name' => '用户账号',
            'mark' => 'user',
            'icon' => 'layui-icon layui-icon-set',
            'menu' => [
                [
                    'name' => '用户中心',
                    'uri' => 'user/home/index',
                    'icon' => 'layui-icon layui-icon-home',
                ],
                [
                    'name' => '基本资料',
                    'uri' => 'user/profile/index',
                    'icon' => 'layui-icon layui-icon-home',
                ],
                [
                    'name' => '修改头像',
                    'uri' => 'user/profile/avatar',
                    'icon' => 'layui-icon layui-icon-home',
                ],
                [
                    'name' => '修改密码',
                    'uri' => 'user/profile/password',
                    'icon' => 'layui-icon layui-icon-home',
                ],
            ],
        ],
    ],
];
